package com.netty.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.netty.common.entity.Group;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author LiuXiaoYu
 * @date 2022/2/1- 13:35
 */
@Repository
public interface GroupMapper extends BaseMapper<Group> {

    List<Group> getUserAllGroups(@Param("userId") Integer userId);

    List<Group> getAllGroups(List<Integer> groupIds);

    Group getGroupById(@Param("groupId") Integer groupId);
}
